<?php
class hifiPage extends Controller {
   
   function hifiPage()
   {
      parent::Controller();
      
      	$data['menulink'] = array('Pladespillere','CD Afspillere','Forstaerkere');
		$this->load->view('menu_view', $data);
		   	
   		$this->template->write('title','HIFI El GRando StOre');
   		//$this->template->write('categori','hokus pokus', TRUE);
   		$this->template->write_view('contentLeft','menu_view', TRUE);
   		$this->template->write_view('contentRight','content_view', TRUE);
   		$this->template->write_view('footer','footer_view', TRUE);
   }
	
    function index()
   {    
   	$this->template->add_region('categori');	
   	$this->template->write('contentRight','Dette er standard', TRUE);
		$this->template->render();
	}
	
	function side($side_id)
    {
//    	$this->template->set_template('default');	
//    	$indhold = $this->template->write_view('contentRight','content_view');
//    	$data = array(
//          'contentLeft' => $indhold 
//			);
//		$this->template->parse_view('content', 'templatehifi', $data);
//    	$this->template->write_view('content', 'blog/front', $data, FALSE, 'blog/posts');
    	//echo $side_id;
    	//$this->template->write('categori',$side_id, FALSE);
    	//$side_id = $this->uri->segment(3);
   			
    	$this->template->add_region('categori');
    	//De regioner i content_view, er oprettet her og ikke i config,template
    	$this->template->add_region('overskrift');
    	//$this->template->add_region('underline');
    	//$this->template->add_region('tekst');
    	//$this->template->add_region('billedtekst');
    	
    	$this->template->write('categori',$side_id);
    	$this->template->write('overskrift',$side_id);
    	
 
		$this->template->render();
    }
   
	
}